/*
 * author      : dormi330
 * date        : 2018/6/24
 * description :
 */

package com.deep.trade.infrastructure.mybatis.refund;

import com.deep.trade.domain.refund.RefundType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RefundTypeMapper {

    void insert(@Param("eo") RefundType eo);

    List<RefundType> listAll(
            @Param("tenantCode") String tenantCode
    );

    List<RefundType> listByCatalog(
            @Param("tenantCode") String tenantCode,
            @Param("catalogId") String catalogId
    );

    RefundType findOneById(@Param("tenantCode") String tenantCode,
                           @Param("refundTypeId") String refundTypeId
    );
}
